class Seat extends eui.Component{
    private player:Player;
    
    /**
     * 是否有人
     */
    public isSeat:boolean;
    private img_head:eui.Group;
    private lbl_name:eui.Label;
    private lbl_score:eui.Label;
    private group_cards:eui.Group;
    private lbl_StatusInfo:eui.Label;
    private isReady:boolean;

    public constructor(){
        super();
        this.isReady = false;
    }

    /**
     * 坐下
     */
    public seatDown(player:Player):void{
        this.player=player;
    }

    public get currentPlayer():Player{
        return this.player;
    }

    /**
     * 打扫座位
     */
    public clear():void{
        this.isSeat = false;
        this.player = null;
    }

    public setReady():void{
        this.lbl_StatusInfo.visible = true;
        this.isReady = true;
    }

    /**
     * 玩家发牌
     */
    public deal():void{
        this.lbl_StatusInfo.visible=false;
        //延迟发牌
        
    }

    /**
     * 翻牌,当翻牌时才将具体的牌面值
     */
    public flop(cards:Card[]):void{
        
    }
}